/**
  ETFDAQ Project
  \brief Just a test
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-08-11
  \date 2024-08-11 last modified

  \copyright Copyright (c) 2024 IMP-CAS with LGPLv3 LICENSE
*/

#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <signal.h>
#include <iostream>
#include "TADAQ.h"
#include "TAController.h"
#include "TACrate.h"
#include "TACard.h"
#include "TAMsg.h"

using std::cout;
using std::endl;

const char *dev = "/dev/sis1100_00remote"; // name of sis3100 in /dev

int main(int argc, char *argv[]){
  TADAQ *d = new TADAQ(dev);
  d->TerminalMode(); // use ctrl-C to end a run
  d->Initialize();
  d->OpenFile();
  d->Run();
  d->CloseFile();
  TAMsg::Logo();

  delete d;
  return 0;
} // end the main function
